<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>商品详情</title>
</head>
<body>
    <h2>商品详情</h2>
    <hr>
    <p>名称：{{product.name}}</p>
    <p>价格：{{product.price}}</p>
    <p>描述：{{product.description}}</p>
    <p>数量库存：{{product.stock}}</p>

    <form action="{% url 'product:product_add' product.id %}" method="post">
        {% csrf_token %}
        <p>添加数量：<input type="text" name="num"></p>
        <button type="submit">添加</button>
    </form>
</body>
</html>